package com.haiya.memento.casestudy;

public class Player {
    private String wifeName;

    public String getWife() {
        return wifeName;
    }

    public void setWife(String name) {
        this.wifeName = name;
    }

    public Girl createMemento() {
        return new Girl(wifeName);
    }

    public void restoreMemento(Girl girl) {
        wifeName = girl.getName();
    }
}
